using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Rsd.Faith.Models
{
    /// <summary>
    /// 
    /// </summary>
    [Table("fiscal_票据信息表", "fiscal__piao_ju_xin_xi_biao", "id")]
    [Serializable]
    public class FiscalPiaoJuXinXiBiaoModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 发票编号
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("fa_piao_bian_hao", "发票编号", 20, 20)]
        [DisplayName("发票编号")]
        public string FaPiaoBianHao { get; set; }

        /// <summary>
        /// 所属期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 21, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }

        /// <summary>
        /// 小区编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("xiao_qu_bian_hao", "小区编号", 21, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        /// 房屋代码
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("fang_wu_dai_ma", "房屋代码", 22, 20)]
        [DisplayName("房屋代码")]
        public string FangWuDaiMa { get; set; }

        /// <summary>
        /// 业主姓名
        /// </summary>
        [StringType("ye_zhu_xing_ming", "业主姓名", 24, 120)]
        [DisplayName("业主姓名")]
        public string YeZhuXingMing { get; set; }

        /// <summary>
        /// 房屋类型
        /// </summary>
        [StringType("fang_wu_lei_xing", "房屋类型", 26, 10)]
        [DisplayName("房屋类型")]
        public FangWuLeiXing FangWuLeiXing { get; set; }

        /// <summary>
        /// 房屋性质
        /// </summary>
        [StringType("fang_wu_xing_zhi", "房屋性质", 28, 10)]
        [DisplayName("房屋性质")]
        public FangWuXingZhi FangWuXingZhi { get; set; }

        /// <summary>
        /// 收费标准
        /// </summary>
        [IntegerType("shou_fei_biao_zhun", "收费标准", 30, 20)]
        [DisplayName("收费标准")]
        public ShouFeiBiaoZhunZZ ShouFeiBiaoZhun { get; set; }

        /// <summary>
        /// 购房总额
        /// </summary>
        [NumericType("gou_fang_zong_e", "购房总额", 32, 20, 2)]
        [DisplayName("购房总额")]
        public decimal GouFangZongE { get; set; }

        /// <summary>
        /// 应交金额
        /// </summary>
        [NumericType("ying_jiao_jin_e", "应交金额", 34, 20, 2)]
        [DisplayName("应交金额")]
        public decimal YingJiaoJinE { get; set; } 

        /// <summary>
        /// 交存方式
        /// </summary>
        [StringType("jiao_cun_fang_shi", "交存方式", 36, 20)]
        [DisplayName("交存方式")]
        public JiaoCunFangShi JiaoCunFangShi { get; set; }

        /// <summary>
        /// 实交金额
        /// </summary>
        [NumericType("shi_jiao_jin_e", "实交金额", 36, 20, 2)]
        [DisplayName("实交金额")]
        public decimal ShiJiaoJinE { get; set; }

        /// <summary>
        /// 交纳日期
        /// </summary>
        [DateTimeType("jiao_na_ri_qi", "交纳日期", 38)]
        [DisplayName("交纳日期")]
        public DateTime JiaoNaRiQi { get; set; }

        /// <summary>
        /// 操作员号
        /// </summary>
        [StringType("cao_zuo_yuan_hao", "操作员号", 40, 250)]
        [DisplayName("操作员号")]
        public string CaoZuoYuanHao { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [StringType("zhuang_tai", "状态", 42, 10)]
        [DisplayName("状态")]
        public FaPiaoZhuangTai ZhuangTai { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public FiscalPiaoJuXinXiBiaoModel()
        { }

    }
}
